package si.yun.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Id;
import javax.persistence.GeneratedValue;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;
/** 
 * @Author Cxc 
 * @Author QQ:1304793236 
 * @Date 2021-07-29 16:27:36 
 */
@Entity
@Table ( name ="sy_user_order" )
public class SyUserOrder  implements Serializable {

	private static final long serialVersionUID =  1581567695224708036L;

	/**
	 * 订单信息主键
	 */
   	@Column(name = "order_id" )
	private Long orderId;

	/**
	 * 用户id
	 */
   	@Column(name = "user_id" )
	private Long userId;

	/**
	 * 外键（用户地址表id）
	 */
   	@Column(name = "address_id" )
	private Long addressId;

	/**
	 * 用户编号
	 */
   	@Column(name = "user_number" )
	private Long userNumber;

	/**
	 * 订单编号
	 */
   	@Column(name = "order_no" )
	private Long orderNo;

	/**
	 * 购买编号
	 */
   	@Column(name = "shop_id" )
	private Long shopId;

	/**
	 * 订单状态(2待付款，3已付款，4待发货，5已发货，6已签收，7退货申请，8退货中，9已退货，10取消交易)
	 */
   	@Column(name = "order_status" )
	private Long orderStatus;

	/**
	 * 商品数量
	 */
   	@Column(name = "product_count" )
	private Long productCount;

	/**
	 * 商品总价
	 */
   	@Column(name = "price_total" )
	private BigDecimal priceTotal;

	/**
	 * 运费金额
	 */
   	@Column(name = "freight_amount" )
	private BigDecimal freightAmount;

	/**
	 * 订单金额
	 */
   	@Column(name = "logistics_fee" )
	private BigDecimal logisticsFee;

	/**
	 * 订单物流编号
	 */
   	@Column(name = "order_logistics_number" )
	private Long orderLogisticsNumber;

	/**
	 * 商品类型(2视频，3商品)
	 */
   	@Column(name = "order_type" )
	private Long orderType;

	/**
	 * 订单支付渠道(2.微信支付,3.余额支付)
	 */
   	@Column(name = "order_payment_channel" )
	private Long orderPaymentChannel;

	/**
	 * 订单支付单号
	 */
   	@Column(name = "payment_order_no" )
	private Long paymentOrderNo;

	/**
	 * 收货地址
	 */
   	@Column(name = "receiving_address" )
	private String receivingAddress;

	/**
	 * 付款时间
	 */
   	@Column(name = "payment_time" )
	private Date paymentTime;

	/**
	 * 发货时间
	 */
   	@Column(name = "delivery_time" )
	private Date deliveryTime;

	/**
	 * 订单来源(2小程序，3app)
	 */
   	@Column(name = "order_source" )
	private Long orderSource;

	/**
	 * 是否已评论(2待评论,3已评论,4未评论)
	 */
   	@Column(name = "comment" )
	private Long comment;

	/**
	 * 用户备注
	 */
   	@Column(name = "remarks" )
	private String remarks;

	/**
	 * 创建时间
	 */
   	@Column(name = "create_date" )
	private Date createDate;

	/**
	 * 更新人
	 */
   	@Column(name = "update_id" )
	private Long updateId;

	/**
	 * 更新时间
	 */
   	@Column(name = "update_date" )
	private Date updateDate;

  public Long getOrderId() {
    return orderId;
  }

  public void setOrderId(Long orderId) {
    this.orderId = orderId;
  }


  public Long getUserId() {
    return userId;
  }

  public void setUserId(Long userId) {
    this.userId = userId;
  }


  public Long getAddressId() {
    return addressId;
  }

  public void setAddressId(Long addressId) {
    this.addressId = addressId;
  }


  public Long getUserNumber() {
    return userNumber;
  }

  public void setUserNumber(Long userNumber) {
    this.userNumber = userNumber;
  }


  public Long getOrderNo() {
    return orderNo;
  }

  public void setOrderNo(Long orderNo) {
    this.orderNo = orderNo;
  }


  public Long getShopId() {
    return shopId;
  }

  public void setShopId(Long shopId) {
    this.shopId = shopId;
  }


  public Long getOrderStatus() {
    return orderStatus;
  }

  public void setOrderStatus(Long orderStatus) {
    this.orderStatus = orderStatus;
  }


  public Long getProductCount() {
    return productCount;
  }

  public void setProductCount(Long productCount) {
    this.productCount = productCount;
  }


  public BigDecimal getPriceTotal() {
    return priceTotal;
  }

  public void setPriceTotal(BigDecimal priceTotal) {
    this.priceTotal = priceTotal;
  }


  public BigDecimal getFreightAmount() {
    return freightAmount;
  }

  public void setFreightAmount(BigDecimal freightAmount) {
    this.freightAmount = freightAmount;
  }


  public BigDecimal getLogisticsFee() {
    return logisticsFee;
  }

  public void setLogisticsFee(BigDecimal logisticsFee) {
    this.logisticsFee = logisticsFee;
  }


  public Long getOrderLogisticsNumber() {
    return orderLogisticsNumber;
  }

  public void setOrderLogisticsNumber(Long orderLogisticsNumber) {
    this.orderLogisticsNumber = orderLogisticsNumber;
  }


  public Long getOrderType() {
    return orderType;
  }

  public void setOrderType(Long orderType) {
    this.orderType = orderType;
  }


  public Long getOrderPaymentChannel() {
    return orderPaymentChannel;
  }

  public void setOrderPaymentChannel(Long orderPaymentChannel) {
    this.orderPaymentChannel = orderPaymentChannel;
  }


  public Long getPaymentOrderNo() {
    return paymentOrderNo;
  }

  public void setPaymentOrderNo(Long paymentOrderNo) {
    this.paymentOrderNo = paymentOrderNo;
  }


  public String getReceivingAddress() {
    return receivingAddress;
  }

  public void setReceivingAddress(String receivingAddress) {
    this.receivingAddress = receivingAddress;
  }


  public Date getPaymentTime() {
    return paymentTime;
  }

  public void setPaymentTime(Date paymentTime) {
    this.paymentTime = paymentTime;
  }


  public Date getDeliveryTime() {
    return deliveryTime;
  }

  public void setDeliveryTime(Date deliveryTime) {
    this.deliveryTime = deliveryTime;
  }


  public Long getOrderSource() {
    return orderSource;
  }

  public void setOrderSource(Long orderSource) {
    this.orderSource = orderSource;
  }


  public Long getComment() {
    return comment;
  }

  public void setComment(Long comment) {
    this.comment = comment;
  }


  public String getRemarks() {
    return remarks;
  }

  public void setRemarks(String remarks) {
    this.remarks = remarks;
  }


  public Date getCreateDate() {
    return createDate;
  }

  public void setCreateDate(Date createDate) {
    this.createDate = createDate;
  }


  public Long getUpdateId() {
    return updateId;
  }

  public void setUpdateId(Long updateId) {
    this.updateId = updateId;
  }


  public Date getUpdateDate() {
    return updateDate;
  }

  public void setUpdateDate(Date updateDate) {
    this.updateDate = updateDate;
  }

}
